package com.yuyou.weixin.vo.req;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by yujin.liu on 2018/1/22.
 */
public class ReqAddPrize {

    @ApiModelProperty(value = "项目代码", required = true)
    @NotBlank(message="项目代码不能为空")
    private String projectCode;
	
    @ApiModelProperty(value = "名字", required = true)
    @Length(min = 2 ,max = 20 , message = "姓名请填写2~20个字")
    @NotBlank(message="请填写您的姓名")
    private String prizeUser;
    
    @ApiModelProperty(value = "年级", required = true)
    @Length(max = 20 , message = "年级错误")
    @NotBlank(message="请选择年级")
    private String grade;

    @ApiModelProperty(value = "手机号", required = true)
    @Length(min = 11,max = 11, message = "手机号错误")
    @NotBlank(message="请填写手机号码")
    private String phone;
    
    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message="短信验证码不能为空")
    private String code;

	@ApiModelProperty(value = "openId", required = true)
	@NotBlank(message="openId不能为空")
    private String openId;

	@ApiModelProperty(value = "校区名称" , required = true)
	@NotBlank(message = "请选择意向领取校区")
	private String school;

	public String getPrizeUser() {
		return prizeUser;
	}

	public void setPrizeUser(String prizeUser) {
		this.prizeUser = prizeUser;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	
	
	
}
